<?php
class KunKun{
	public function __construct()
	{
		$ci = get_instance();
	}
	public function css( $file ){
		$path = $this->template->get_theme_path()."css/";
		echo "<link rel=\"stylesheet\" href=\"".base_url().$path.$file."\" />";
	}
	
	public function js( $file ){
		$path = $this->template->get_theme_path()."js/";
		//echo $path;
		echo "<script src=\"".base_url().$path.$file."\" type=\"text/javascript\"></script>";
	}
	
	public function asset( $file, $type = 0 ){
		$path = $this->template->get_theme_path()."asset/";
		$result = ($type==0) ? "<link rel=\"stylesheet\" href=\"".base_url().$path.$file."\" />" 
				: "<script src=\"".base_url().$path.$file."\" type=\"text/javascript\"></script>";
		echo $result;
	}
	public function img_src( $file ){
		$path = $this->template->get_theme_path()."img/";
		//echo $path;
		echo base_url().$path.$file;
	}
}
?>